package design.VisitorPattern;

import java.util.List;

/**
 * Created by looper on 2017/8/25.
 */
public class VisitorPatternTest {
  public static void main(String[] args) {
    List<Element> elementList = ObjectStruture.getList();

    for (Element element : elementList) {
      element.accept(new ConcreteVisitor());
    }

  }
}
